package com.anolesoft.yr.mbus.pre.mapper;

import com.anolesoft.yr.mbus.pre.dto.PreOrderPartSaveDTO;
import com.anolesoft.yr.mbus.pre.sql.PreOrderPartSQL;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PreOrderPartMapper {

    //新增报价单配件
    @Insert(PreOrderPartSQL.SAVE_PRE_ORDER_PART)
    int savePreOrderPart(PreOrderPartSaveDTO preOrderPartSaveDTO);

    //删除报价单配件
    @Update(PreOrderPartSQL.DELETE_PRE_ORDER_PART)
    int deletePreOrderPart(String preOrderUid);

}
